<?php

namespace App\Models;

use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;

class Admin extends Authenticatable
{
    use Notifiable;

    /**
     * 表名
     * @var string
     */
    protected $table = 'admins';

    /**
     * 主键
     * @var string
     */
    protected $primaryKey = 'id';

    /**
     * 可填充的字段
     * @var array
     */
    protected $fillable = [
        'name', 'email', 'password',
    ];

    /**
     * 隐藏字段
     * @var array
     */
    protected $hidden = [
        'password', 'remember_token',
    ];

    /**
     * 新增修改时间
     * @var bool
     */
    public $timestamps = true;

}
